package cn.sfturing.dao;

import cn.sfturing.entity.DoctoWork;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DoctoWorkMapper {
    //根据医生id和时间段查找数据
    List<DoctoWork> selecrByIdAndDate(@Param("doctorId") int doctorId, @Param("startDate")String startDate, @Param("endDate")String endDate);
    //根据医生id和日期查找数据
    DoctoWork selecrByIdAndDateOne(@Param("doctorId") int doctorId, @Param("date")String date);

    //根据医生id和日期修改信息
    int updateByIdAndDate(DoctoWork doctoWork);
    //根据医生id和日期插入信息
    int insertSelective(DoctoWork doctoWork);

    /**
     * 全字段插入（都要有值）
     */
    int deleteByPrimaryKey(Integer id);
    int insert(DoctoWork record);


    DoctoWork selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DoctoWork record);

    int updateByPrimaryKey(DoctoWork record);



}